package com.dex4d.constants;

/**
 * Created by chengyuchun on 2018/10/25.
 * <p>
 * 接口常量
 */
public class IConstants {

    //JSON RPC 版本
    public final static String JSON_RPC_VERSION = "2.0";

    //ETH symbol
    public final static String ETH_SYMBOL = "ETH";

    //获取以太余额接口
    public final static String CONTRACTSERVICE_GETBALANCE = "contractservice_getBalance";

    //获取其他代币余额
    public final static String CONTRACTSERVICE_ERC20BALANCE = "contractservice_erc20Balance";

    //获取nonce id
    public final static String CONTRACTSERVICE_GETNONCE = "contractservice_getNonce";

    //获取gas price
    public final static String CONTRACTSERVICE_GASPRICE = "contractservice_gasPrice";

    //发送签名交易
    public final static String CONTRACTSERVICE_SENDRAWTRANSACTION = "contractservice_sendRawTransaction";

    //获取二级市场法币价格
    public final static String GATEWAY_GETMARKETPRICE = "gateway_getMarketPrice";

    //获取保险箱信息
    public final static String GATEWAY_VAULTOVERVIEW = "gateway_vaultOverview";

    //Dex4D币价格、Dex4D提供量、代币总量
    public final static String MARKET_GETMARKETCAPINFO = "marketcap_getMarketCapInfo";

    //买时得到的D4D数量(拖进度条)
    public final static String CONTRACTSERVICE_CALCULATETOKENSRECEIVED = "contractservice_calculateTokensReceived";

    //买时花费多少代币(自己填写购买数量)
    public final static String CONTRACTSERVICE_CALCULATEBUYTOKENSPEND = "contractservice_calculateBuyTokenSpend";

    //卖出得到的代币
    public final static String CONTRACTSERVICE_CALCULATEBUYTOKENRECEIVED = "contractservice_calculateBuyTokenReceived";

    //获取token列表
    public final static String GATEWAY_GETTOKENTABLES = "gateway_getTokenTables";

    //获取游戏列表
    public final static String GATEWAY_GETGAMESBYTOKENNAME = "gateway_getGamesByTokenName";

    //是否有推荐权限
    public final static String CONTRACTSERVICE_ISREFERRALER = "contractservice_isReferraler";

    //是否有对倒权限
    public final static String CONTRACTSERVICE_ISARBITRAGER = "contractservice_isArbitrager";

    //写入操作日志
    public final static String GATEWAY_WRITELOG = "gateway_writeLog";

    //获取交易gas消耗
    public final static String ESTIMATE_GAS = "contractservice_estimateGas";

    //检查昵称是否合法
    public final static String CONTRACTSERVICE_CHECKNAME = "contractservice_checkName";

}
